import React from 'react'
import { BrowserRouter, Switch, Route, Redirect } from "react-router-dom"
import Home from "./pages/home"
import Login from "./pages/Login/index"
import Register from "./pages/Register/index"
export default function App() {
  return (
    <div>
      <BrowserRouter>
        <Switch>
          <Redirect exact from="/" to="/home"></Redirect>
          <Route path="/login" component={Login}></Route>
          <Route path="/register" component={Register}></Route>
          <Route path="/" component={Home}></Route>
        </Switch>
      </BrowserRouter>
    </div>
  )
}




